package top.maof.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.maof.book.model.Score;
import top.maof.book.result.PageData;
import top.maof.book.result.PageWrap;

public interface ScoreService extends IService<Score> {
    double bookScore(int bookId);

    Score findScoreByUserAndBook(int userId, int bookId);

    int add(Score score);

    public PageData<Score> findPage(PageWrap<Score> pageWrap);

    // 用户评分
    int evaluateScore(Score s);
}
